package com.itheima.neibulei;

public abstract class NeiBuLei {
    abstract void eat();
}
class Demo {
    public static void main(String[] args) {
        NeiBuLei  nbl=new NeiBuLei(){
            @Override
            void eat() {
                System.out.println("猫吃鱼");
            }
        };
        nbl.eat();
    }
}